package com.szrt.day20170504.ch09;

public class TicketThreadTest {
	
	public static void main(String[] args) {
		
		TicketThread ticket = new TicketThread();
		
		
		Thread t01 = new Thread(ticket);
		Thread t02 = new Thread(ticket);
		Thread t03 = new Thread(ticket);
		Thread t04 = new Thread(ticket);
		Thread t05 = new Thread(ticket);
		
		t05.setPriority(Thread.MAX_PRIORITY);
		
		System.err.println(t05.getPriority());
		
		
		
		
		t01.setName("窗口1");
		t02.setName("窗口2");
		t03.setName("窗口3");
		t04.setName("窗口4");
		t05.setName("窗口5");
		
		t01.start();
		t02.start();
		t03.start();
		t04.start();
		t05.start();
	}

}
